export function initDatatableDataError(): Error {
  return Error('Initial table data error: data, datasource can not exist at the same time');
}

/**
 *
 * @param name 组件名
 * @param key 变量名
 */
export function initCheckboxError(name: string, key: string): Error {
  return Error(`Initialize the "${key}" in ${name} error: cannot set "${key}" in single mode`);
}

export function initCheckboxRowDataError(name: string, key: string): Error {
  return Error(`Initial ${name} error: missing ${key}`);
}

export function initRowsDataInTreetableWarn(): void {
  // eslint-disable-next-line no-console
  console.warn(
    'If lvRowsData is not set, it will be processed as an empty array. If it is a leaf node, please ignore this warning.',
  );
}

export function initHtmlStructureError(): Error {
  return Error('If you want to use lvResize capability, the next sibling node of th node must also be th node');
}
